﻿using System;

class HexadecimalFormat
{
    static void Main()
    {
        //Exercise 4: 
        //Declare an integer variable and assign it with the value 254 in hexadecimal format. 
        //Use Windows Calculator to find its hexadecimal representation.

        //The hexadecimal representation of 254 is FE.
        //Here the program itself calculates it.

        int Var = 254;
        string xeVar = String.Format("{0:X}",Var);
        Console.WriteLine("The hexadecimal representation of integer 254 is: 0x{0}",xeVar);

     }
}

